package com.remist.dao;

import java.util.LinkedList;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.remist.model.ProductType;
@Transactional
/**
 * 
 * @author xxx
 *
 */
public interface ProductTypeDao {

	public ProductType addProductType(ProductType productTypeBean);
	public boolean updateProductType(ProductType productTypeBean);
	public boolean deleteProductType(ProductType productTypeBean);
	public List<ProductType> listSonProductTypeByParentKey(ProductType productTypeBean);
	public ProductType getProductTypeByKey(ProductType bean);
	public ProductType getParentTypeByParentKey(ProductType bean );
	public int countSonByParentKey(ProductType productTypeParentBean);
	public ProductType getProductTypeByName(ProductType bean);
	public List<ProductType> listChilds(ProductType bean);
	
}
